How to Pregreplace {number}) with \n{number})

Posted by streetparade on Stack Overflow See other posts from Stack Overflow or by streetparade
Published on 2010-04-29T08:41:33Z Indexed on 2010/04/29 8:47 UTC
Read the original article Hit count: 539

Filed under:
|

How can i replace {number}) with \n{number})

Say i have something like this

1) test string testing new string. 2) that is also a new string no new line. 3) here also no new lines.

The output should be something like this

1) test string testing new string.

2) that is also a new string no new line.

3) here also no new lines.

How can i do that with a regex?

© Stack Overflow or respective owner

Related posts about php

Related posts about regex